<template>
  <PageBox :data="dataInfo" @searchBtn="getTbody">
    <template #search="{ search }">
      <ElFormItemBox label="结算方式" prop="settlementWay">
        <ElSelectBox :data="search" dataName="settlementWay" isAll :allValue="0" :options="options.settlementWay" />
      </ElFormItemBox>
      <ElFormItemBox label="启用状态" prop="isEnabled">
        <ElSelectBox :data="search" dataName="isEnabled" isAll :allValue="-1" :options="options.isEnabled" />
      </ElFormItemBox>
    </template>
    <template #customerStateName="{ row }">
      <ElTagBox :data="row.customerState" :options="options.isEnabled" />
    </template>
    <template #settlementWayName="{ row }">
      <ElTagBox :data="row.settlementWay" :options="options.settlementWay" />
    </template>
  </PageBox>
</template>

<script setup lang="ts">
import './pageCss.scss'; // 引入样式
import { useListComponent } from './pageTs'; // 引入逻辑
const { dataInfo, getTbody, options } = useListComponent();
</script>
